<?php
use_helper("users");
$style="";
if('top'!=$spase){
    $style="01";
}
echo "<div class='banner".$style."'>";
$flashname = $advertise->getImage();
if(end(explode(".",fileExist($flashname)))=="swf")
{
    
    echo '<objectclassid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
    echo ' height="100%" width="100%">';
    echo ' <paramname="movie"value="'.$flashname.'" />';
    echo ' <paramname="quality" value="high" />';
    echo ' <paramname="wmode" value="opaque" />';
    echo ' <EMBED src="'.$flashname.'" quality="high "WIDTH="100%" HEIGHT="100%"';
    echo ' wmode="opaque" TYPE="application/x-shockwave-flash"';
    echo ' PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>';
    echo '</object>';
}else{
    echo "<a href='".$advertise->getLink()."' target='_blank'><img src='".fileExist($flashname)."' /></a>";
}
echo "</div>";
?>


